const path = require("path");
module.exports = {
    chainWebpack: config => {
        config.resolve.alias.set("@", path.join(__dirname, "src"));
    },
    devServer: {
        proxy: {
            "/10010": {
                target: "https://m.10010.com",
                ws: true,
                changeOrigin: true,
                pathRewrite: {
                    "^/10010": "/10010",
                },
            },
            "/": {
                target: "http://api.vikingship.xyz",
                ws: true,
                changeOrigin: true,
                pathRewrite: {
                    "^/": "/",
                },
            },
        },
    },
};
